package cn.tedu._06springaop.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCalculator {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._06springaop");
        Calculator bean = context.getBean(Calculator.class);
        bean.add(20, 10);
    }
}
